package com.zhang.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Api(tags = "出库订单详情实体类")
@Data
@NoArgsConstructor
@TableName("t_outputorder")
public class OutputOrderBean {

    @ApiModelProperty("出库订单id")
    @TableId(value = "pk_outputOrderId",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品名")
    @TableField(value = "oo_name")
    private String name;

    @ApiModelProperty("厂家")
    @TableField(value = "oo_mill")
    private String mill;

    @ApiModelProperty("成交价")
    @TableField(value = "oo_money")
    private Integer money;

    @ApiModelProperty("出库数量")
    @TableField(value = "oo_count")
    private Integer count;

    @ApiModelProperty("商品所属类别")
    @TableField("fk_typeId")
    private Integer typeId;

    @ApiModelProperty("所属出库信息")
    @TableField("fk_outputInfoId")
    private Integer outputInfoId;


    @Override
    public String toString() {
        return "OutputOrderBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", mill='" + mill + '\'' +
                ", money=" + money +
                ", count=" + count +
                '}' + "\n";
    }
}
